#include "cover.h"

Cover::Cover(char* fname, std::string txt)
{
	this->name = txt;
	
	/* TODO Load Image Data*/
	img = new GuiImageData((u8*)fname, true);
}

Cover::~Cover()
{

}
		
u8* Cover::GetImage()
{
	if(img != NULL)
	{
		return img->GetImage();
	}
	return 0;
}

int Cover::GetWidth()
{
	if(img != NULL)
	{
		return img->GetWidth();
	}
	return 0;
}


int Cover::GetHeight()
{
	if(img != NULL)
	{
		return img->GetHeight();
	}
	
	return 0;
}

const char* Cover::GetName()
{
	return name.c_str();
}